package itextcode;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

import com.lowagie.text.Cell;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Table;
import com.lowagie.text.html.HtmlWriter;


public class Test {


	public static void main(String[] args) throws FileNotFoundException, DocumentException {
		Document d = new Document (PageSize.A4); 
		HtmlWriter.getInstance (d, new FileOutputStream("C://Borland/Together/Architect2006/workspace/checkout svn/itextcode/generated_documents/Test.html"));
		d.open ();

		Table table = new Table (2);
		table.setBorderWidth(0);
		Cell cell = new Cell (new Paragraph ("New Mustang Features"));
		cell.setColspan (2);
		table.addCell (cell);
		
		   table.addCell ("Feature");
		   table.addCell ("Description");
		
		Paragraph p = new Paragraph ("Some sample Text");
		d.add(table);
		d.add (p);
		d.close ();

	}

}
